<div class="hero min-h-screen bg-base-200">
  <div class="hero-content flex-col lg:flex-row-reverse">
    <div class="text-center lg:text-left">
      <h1 class="text-5xl font-bold">登录</h1>
      <p class="py-6">
        登入世界 AI 智慧门，代码编织梦，知识源。虚拟宇宙随心游，人工智能，指引航。密码锁心扉，验证真，数据涌如江，洪流深。
        (注意注册完并不能能使用，需要管路员进入后台进行授权)
      </p>
    </div>
    <div class="card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-100">

      <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'card-body' }) do |f| %>
        <div class="form-control">
          <%= f.label :email, class: 'label' do %>
            <span class="label-text">Email</span>
          <% end %>
          <%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'input input-bordered' %>
        </div>

        <div class="form-control">
          <%= f.label :password, class: 'label' do %>
            <span class="label-text">密码</span>
          <% end %>
          <%= f.password_field :password, autocomplete: "current-password", class: "input input-bordered" %>
        </div>

        <% if devise_mapping.rememberable? %>
          <div class="form-control">
            <%= f.label :remember_me, class: 'cursor-pointer label' do %>
              <span class="label-text">记住登录</span>
              <%= f.check_box :remember_me, class: 'checkbox checkbox-info' %>
            <% end %>
          </div>
        <% end %>
        <label class="label">
          <%= render "devise/shared/links" %>
        </label>
        <div class="form-control mt-6">
          <%= f.submit "登录", class: 'btn btn-primary' %>
        </div>
      <% end %>

    
    </div>
  </div>
</div>